﻿@import "../../../css/common/globalvar.less";

@mark-color: black;
@hint-back-color: white;
@hint-fore-color: @content-fore-color;
@hint-border-color: #888;
@hint-shadow-color: #aaa;
@hint-opacity: 0.9;
@chart-border-color: gray;
@square-border-color: black;
@chart-font-family: Arial, Helvetica, sans-serif;

.chart-wrapper {
    position: relative;
}

.chart-canvas {
    border: 1px solid @chart-border-color;
    display: block;
}

.chart-time-mark {
    background-color: @mark-color;
    opacity: 0.25;
    position: absolute;
    width: 1px;
    z-index: 1;
}

.chart-trend-hint {
    background-color: @hint-back-color;
    border: 1px solid @hint-border-color;
    border-radius: 5px;
    box-shadow: 2px 2px 5px @hint-shadow-color;
    color: @hint-fore-color;
    font-family: @chart-font-family;
    font-size: 12px;
    opacity: @hint-opacity;
    padding: 5px 10px;
    position: absolute;
    z-index: 2;
}

.chart-trend-hint table {
    border-collapse: collapse;
}

.chart-trend-hint td {
    padding: 2px 5px 0 0;
    white-space: nowrap;
}

.chart-trend-hint td:last-child {
    padding-right: 0;
}

.chart-trend-hint td.color span {
    border: 1px solid @square-border-color;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.chart-time-mark.hidden,
.chart-trend-hint.hidden {
    display: none;
}